package com.liu.nb.service;

import com.liu.nb.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuziyi
 * @since 2021-08-05
 */
public interface ISysUserService extends IService<SysUser> {
//  根据用户名获取用户
    SysUser getByUsername(String username);
//  根据id获取用户权限
    String getUserAuthorityInfo(long userId);
//  清除用户权限缓存
    void clearAuthorityInfoByUserName(String username);
    void clearAuthorityInfoByRoleId(Long RoleId);
    void clearAuthorityInfoByMenuId(Long menuId);
}
